<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>注册</title>
    <link th:href="@{/css/bootstrap.min.css}" href="/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #232526 0%, #414345 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .register-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(8px);
            border-radius: 20px;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            padding: 2.5rem 2.5rem 2rem 2.5rem;
            width: 100%;
            max-width: 370px;
            color: #fff;
        }

        .register-title {
            font-weight: 900;
            margin-bottom: 2.2rem;
            color: #fff;
            text-align: center;
            font-size: 2.2rem;
            letter-spacing: 2px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        }

        .form-control {
            border-radius: 12px;
            margin-bottom: 1.3rem;
            font-size: 1.08rem;
            background: rgba(255, 255, 255, 0.18);
            border: 1.5px solid #636e72;
            color: #fff;
            transition: border-color 0.2s, background 0.2s;
        }

        .form-control:focus {
            border-color: #00b894;
            background: rgba(255, 255, 255, 0.28);
            color: #222;
        }

        .form-control::placeholder {
            color: #dfe6e9;
            opacity: 1;
        }

        .btn-gradient {
            border-radius: 12px;
            font-size: 1.18rem;
            font-weight: 800;
            background: linear-gradient(90deg, #00b894 0%, #0984e3 100%);
            border: none;
            letter-spacing: 1px;
            padding: 0.8rem 0;
            color: #fff;
            box-shadow: 0 2px 8px rgba(9, 132, 227, 0.18);
            transition: background 0.2s, box-shadow 0.2s;
        }

        .btn-gradient:hover {
            background: linear-gradient(90deg, #0984e3 0%, #00b894 100%);
            box-shadow: 0 4px 16px rgba(0, 184, 148, 0.18);
        }

        .register-footer {
            margin-top: 2.2rem;
            font-size: 0.98rem;
            color: #b2bec3;
            text-align: center;
            letter-spacing: 1px;
        }

        .register-footer a {
            color: #00b894;
            text-decoration: underline;
            margin-top: 8px;
            display: inline-block;
        }

        @media (max-width: 480px) {
            .register-card {
                padding: 1.2rem 0.5rem 1rem 0.5rem;
            }
        }
    </style>
</head>

<body>
    <div class="register-card">
        <div class="register-title">用户注册</div>
        <form th:action="@{/user/register}" method="post">
            <input type="text" class="form-control" placeholder="用户名" required autofocus name="username">
            <input type="password" class="form-control" placeholder="密码" required name="password">
            <input type="password" class="form-control" placeholder="确认密码" required name="confirmPassword">
            <button class="btn btn-gradient btn-block w-100" type="submit">注 册</button>
        </form>
        <div class="register-footer">
            已有账号？<a href="/user/login">返回登录</a>
        </div>
    </div>
</body>

</html>